
<!-- start content-outer ........................................................................................................................START -->
<div id="content-outer">
    <!-- start content -->
    <div id="content">

        <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
            <tr>
                <th rowspan="3" class="sized"><img src="<?php echo base_url('public/admin');?>/images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
                <th class="topleft"></th>
                <td id="tbl-border-top">&nbsp;</td>
                <th class="topright"></th>
                <th rowspan="3" class="sized"><img src="<?php echo base_url('public/admin');?>/images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
            </tr>
            <tr>
                <td id="tbl-border-left"></td>
                <td>
                    <!--  start content-table-inner ...................................................................... START -->
                    <div id="content-table-inner">

                        <!--  start table-content  -->
                        <div id="table-content">

                            <!--  start product-table ..................................................................................... -->
                            <form id="mainform" >
                                <table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
                                    <tr>
                                        <th class="table-header-repeat line-left"><input style="margin: 10px;" type="checkbox" id="checkAll" name="checkAll" onclick="Check(document.fcheck.chk)"/> </th>

                                        <th class="table-header-repeat line-left minwidth-1"><a href="">Tên Danh mục</a>	</th>
                                        <th class="table-header-repeat line-left minwidth-1"><a href="">Url</a></th>
                                        <th class="table-header-repeat line-left"><a href="">status</a></th>
                                        <th class="table-header-repeat line-left "><a href="">Options</a></th>
                                    </tr>
                                    <?php
                                    $i =1;
                                    foreach($categories as $item){?>
                                        <tr <?php if($i % 2 == 0){echo 'class="alternate-row"';} ?>>
                                            <td><input type="checkbox"  value="<? echo $item->category_id; ?>" name="chk[]" id="chk" /></td>

                                            <td><?php echo $item->category_name;?></td>
                                            <td><?php echo $item->category_url;?></td>
                                            <?php
                                            echo '<td>';
                                            if ( $item->category_active == 0 )
                                                echo '<a href="javascript:update_status( \''.items_link('category/updateStatus/'.$item->category_id.'/1').'\' );"><span style="color: #ff0000;">Nháp</span></a>';
                                            else
                                                echo '<a href="javascript:update_status( \''.items_link('category/updateStatus/'.$item->category_id.'/0').'\' );">Đã duyệt</a>';
                                            echo '</td>';
                                            ?>
                                            <td >
                                                <a href="<?php echo site_url('admin/category/update/'.$item->category_id); ?>" title="Edit" class="icon-1 info-tooltip"></a>
                                                <a href="<?php echo site_url('admin/category/delete/'.$item->category_id);?>" title="Delete" class="icon-2 info-tooltip"></a>

                                            </td>
                                        </tr>
                                        <?php $i++;}?>

                                </table>
                                <!--  end product-table................................... -->
                            </form>
                        </div>
                        <!--  end content-table  -->

                        <!--  start actions-box ............................................... -->
                        <div id="actions-box">
                            <a href="" class="action-slider"></a>

                            <div class="clear"></div>
                        </div>
                        <!-- end actions-box........... -->

                        <div class="clear"></div>

                    </div>
                    <!--  end content-table-inner ............................................END  -->
                </td>
                <td id="tbl-border-right"></td>
            </tr>
            <tr>
                <th class="sized bottomleft"></th>
                <td id="tbl-border-bottom">&nbsp;</td>
                <th class="sized bottomright"></th>
            </tr>
        </table>
        <div class="clear">&nbsp;</div>

    </div>
    <!--  end content -->
    <div class="clear">&nbsp;</div>
</div>
<!--  end content-outer........................................................END -->

